import { IconPath, type IconPathType } from './icon-path'
import { PagePath } from './page-path'
import type { PageTitleType } from './page-title'
import { Menu } from '@/common/constants/menu'

/** 导航项类型 */
export interface NavigateItemType {
  icon: IconPathType
  title: PageTitleType
  onClick: () => void
}

/**
 * 导航项
 */
export const NavigateItem: Record<string, NavigateItemType> = {
  CALENDAR: {
    icon: IconPath.CALENDAR,
    title: Menu.SIGN_IN,
    onClick: () => console.log('签到'),
  },
  MY_PROJECT: {
    icon: IconPath.PROJECTS,
    title: Menu.MY_PROJECT,
    onClick: () => goToPage(PagePath.MY_LIST_PROJECT),
  },
  MY_ACTIVITY: {
    icon: IconPath.VOLUNTEER,
    title: Menu.MY_ACTIVITY,
    onClick: () => goToPage(PagePath.MY_LIST_ACTIVITY),
  },
  NOTIFICATION: {
    icon: IconPath.NOTIFICATION,
    title: Menu.NOTIFICATION,
    onClick: () => goToPage(PagePath.NOTIFICATION),
  },
  DYNAMIC: {
    icon: IconPath.DYNAMIC,
    title: Menu.MY_DYNAMIC,
    onClick: () => goToPage(PagePath.MY_LIST_DYNAMIC),
  },
}
